package edu.centenary.centenaryController;
public class WayPoint{
	//datamembers
	private double x = 0;
	private double y = 0;
	private long time = 0;
	//constructor
	public WayPoint(double x, double y, long time){
		this.x = x;
		this.y = y;
		this.time = time;
	}
	//methods
	public void setX(double x){
		this.x = x;
	}
	public double getX(){
		return x;
	}
	public void setY(double y){
		this.y = y;
	}
	public double getY(){
		return y;
	}
	public double getRtoWDistance(WayPoint wp){
		double d = (Math.sqrt( Math.pow(wp.getX() - this.getX(),2)+ Math.pow(wp.getY() - this.getY(),2)));
		return d;
	}
}